<!-- 统一导航栏组件 -->
<div class="top-nav">
    <div class="nav-title">智能知识图谱系统</div>
    <div class="nav-links">
        <a href="/" class="nav-link {{ 'active' if request.endpoint in ['home', 'index'] else '' }}">
            <span class="nav-icon">🏠</span>
            <span class="nav-text">首页</span>
        </a>
        <a href="/single-qa" class="nav-link {{ 'active' if request.endpoint == 'single_qa' else '' }}">
            <span class="nav-icon">🎯</span>
            <span class="nav-text">单条QA</span>
        </a>
        <a href="/batch-generation" class="nav-link {{ 'active' if request.endpoint == 'batch_generation' else '' }}">
            <span class="nav-icon">⚡</span>
            <span class="nav-text">批量生成</span>
        </a>
        <a href="/data-evaluation" class="nav-link {{ 'active' if request.endpoint == 'data_evaluation' else '' }}">
            <span class="nav-icon">📊</span>
            <span class="nav-text">数据评测</span>
        </a>
        <a href="/comparison-evaluation" class="nav-link {{ 'active' if request.endpoint == 'comparison_evaluation' else '' }}">
            <span class="nav-icon">🔄</span>
            <span class="nav-text">对比评测</span>
        </a>
        <a href="/runs-qa-generation" class="nav-link {{ 'active' if request.endpoint == 'runs_qa_generation' else '' }}">
            <span class="nav-icon">📁</span>
            <span class="nav-text">Runs记录QA</span>
        </a>
        <a href="/data-management" class="nav-link {{ 'active' if request.endpoint == 'data_management' else '' }}">
            <span class="nav-icon">🗂️</span>
            <span class="nav-text">数据管理</span>
        </a>
        <a href="/final-datasets" class="nav-link {{ 'active' if request.endpoint == 'final_datasets' else '' }}">
            <span class="nav-icon">🗄️</span>
            <span class="nav-text">最终数据</span>
        </a>
        <a href="/domain-tags" class="nav-link {{ 'active' if request.endpoint == 'domain_tags' else '' }}">
            <span class="nav-icon">🏷️</span>
            <span class="nav-text">领域标签</span>
        </a>
    </div>
</div>
